package com.neuedu.yunong.service.impl;
import lombok.RequiredArgsConstructor;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neuedu.yunong.mapper.TalentflowMapper;
import com.neuedu.yunong.domain.Talentflow;
import com.neuedu.yunong.service.ITalentflowService;

/**
 * 人才流动Service业务层处理
 * 
 * @author zl
 * @date 2024-12-10
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TalentflowServiceImpl extends ServiceImpl<TalentflowMapper, Talentflow> implements ITalentflowService
{
    private final TalentflowMapper talentflowMapper;

    /**
     * 查询人才流动
     * 
     * @param id 人才流动主键
     * @return 人才流动
     */
    @Override
    public Talentflow selectTalentflowById(Long id)
    {
        return talentflowMapper.selectTalentflowById(id);
    }

    /**
     * 查询人才流动列表
     * 
     * @param talentflow 人才流动
     * @return 人才流动
     */
    @Override
    public List<Talentflow> selectTalentflowList(Talentflow talentflow)
    {
        return talentflowMapper.selectTalentflowList(talentflow);
    }

    /**
     * 新增人才流动
     * 
     * @param talentflow 人才流动
     * @return 结果
     */
    @Override
    public int insertTalentflow(Talentflow talentflow)
    {
        return talentflowMapper.insertTalentflow(talentflow);
    }

    /**
     * 修改人才流动
     * 
     * @param talentflow 人才流动
     * @return 结果
     */
    @Override
    public int updateTalentflow(Talentflow talentflow)
    {
        return talentflowMapper.updateTalentflow(talentflow);
    }

    /**
     * 批量删除人才流动
     * 
     * @param ids 需要删除的人才流动主键
     * @return 结果
     */
    @Override
    public int deleteTalentflowByIds(Long[] ids)
    {
        return talentflowMapper.deleteTalentflowByIds(ids);
    }

    /**
     * 删除人才流动信息
     * 
     * @param id 人才流动主键
     * @return 结果
     */
    @Override
    public int deleteTalentflowById(Long id)
    {
        return talentflowMapper.deleteTalentflowById(id);
    }
}
